/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package module5.exercise2.banking;

/**
 *
 * @author trang
 */
public class Bank {
    Customer[] customer;
    int numberOfCustomers;

    public Bank() {
        this.customer=new Customer[5];
        this.numberOfCustomers=0;
    }

    public void addCustomer(String firstName,String lastName){
       
        Customer add =new Customer(firstName, lastName);
        customer[numberOfCustomers]=add;
        numberOfCustomers++;
        }

    public int getNumberOfCustomers() {
        return numberOfCustomers;
    }

    public Customer getCustomer(int index) {
        return customer[index];

    }

}

